<%--
  Created by IntelliJ IDEA.
  User: 14496
  Date: 2018/12/9
  Time: 20:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <jsp:include page="../../includes/framework-headers.jsp"/>
    <jsp:include page="../../includes/framework-navbar-student.jsp"/>


    <script src="${pageContext.request.contextPath}/js/student/cal_score.js"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/jquery.validate.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/additional-methods.min.js"></script>
    <script src="${pageContext.request.contextPath}/js/jquery_plugins/jquery.serializejson.js"></script>

    <title>毕业设计指导网站 - 年度评价</title>
</head>
<body>
<div class="gpg-middle">
    <div class="uk-container uk-container-center">
        <div class="uk-grid" data-uk-grid-margin>
            <jsp:include page="../../includes/framework-nav-panel-student.jsp"/>
            <div class="uk-width-medium-3-4">
                <div>
                    <label>提示：</label>
                    <p>下面各题均为单选题，且题目下面的0-3分别代表着此选项与问题的匹配度（0最低，3最高）。多次提交以最后一次为准。</p>
                </div>
                <!-- 主体内容 -->
                <article class="uk-article">
                    <div class="uk-panel uk-panel-box uk-panel-box-secondary">
                        <h3 class="uk-panel-title uk-text-center">评价问卷</h3>
                        <form id="form_questionnaire">
                        <table class="uk-table uk-table-condensed">
                            <tbody>
                            <c:forEach var="questionnaire" items="${questionnaires}">
                                <tr>
                                    <td id="questionnaire_id" hidden>${questionnaire.questionIndex}</td>
                                    <td colspan="4">${questionnaire.question}</td>
                                </tr>
                                <tr>
                                    <td><input type="radio" name="score+${questionnaire.questionIndex}" value="0"/>0</td>
                                    <td><input type="radio" name="score+${questionnaire.questionIndex}" value="1"/>1</td>
                                    <td><input type="radio" name="score+${questionnaire.questionIndex}" value="2"/>2</td>
                                    <td><input type="radio" name="score+${questionnaire.questionIndex}" value="3"/>3</td>
                                </tr>
                            </c:forEach>
                            <tr>
                                <td colspan="4">
                                    <div>
                                        <label class="uk-form-label" for="comment">评价内容补充：</label>
                                        <div class="uk-form-controls">
                                            <textarea name="comment:string" id="comment" cols="94" rows="6"></textarea>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        </form>
                        <div class="uk-align-right">
                            <button class="uk-button uk-button-success" id="btn_submit"><i class="uk-icon-check"></i></button>
                        </div>
                    </div>
                </article>
            </div>
        </div>
    </div>
</div>
</body>
</html>
